<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> 
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<link rel='stylesheet' href="${ctx}/assets/css/tree.css?v=${version}" type="text/css"/>

<div class="container-fluid">

	<div class="tree well">
 <ul>
  <li>
   <span><i class="glyphicon glyphicon-folder-open"></i> Parent</span> <a href="">Goes somewhere</a>
   <ul>
    <li>
      <span><i class="glyphicon glyphicon-minus-sign"></i> Child</span> <a href="">Goes somewhere</a>
     <ul>
      <li>
        <span><i class="glyphicon glyphicon-leaf"></i> Grand Child</span> <a href="">Goes somewhere</a>
      </li>
     </ul>
    </li>
    <li>
      <span><i class="glyphicon glyphicon-minus-sign"></i> Child</span> <a href="">Goes somewhere</a>
     <ul>
      <li>
        <span><i class="glyphicon glyphicon-leaf"></i> Grand Child</span> <a href="">Goes somewhere</a>
      </li>
      <li>
        <span><i class="glyphicon glyphicon-minus-sign"></i> Grand Child</span> <a href="">Goes somewhere</a>
       <ul>
        <li>
          <span><i class="glyphicon glyphicon-minus-sign"></i> Great Grand Child</span> <a href="">Goes somewhere</a>
           <ul>
            <li>
              <span><i class="glyphicon glyphicon-leaf"></i> Great great Grand Child</span> <a href="">Goes somewhere</a>
            </li>
            <li>
              <span><i class="glyphicon glyphicon-leaf"></i> Great great Grand Child</span> <a href="">Goes somewhere</a>
            </li>
            </ul>
        </li>
        <li>
          <span><i class="glyphicon glyphicon-leaf"></i> Great Grand Child</span> <a href="">Goes somewhere</a>
        </li>
        <li>
          <span><i class="glyphicon glyphicon-leaf"></i> Great Grand Child</span> <a href="">Goes somewhere</a>
        </li>
       </ul>
      </li>
      <li>
        <span><i class="glyphicon glyphicon-leaf"></i> Grand Child</span> <a href="">Goes somewhere</a>
      </li>
     </ul>
    </li>
   </ul>
  </li>
  <li>
   <span><i class="glyphicon glyphicon-folder-open"></i> Parent2</span> <a href="">Goes somewhere</a>
   <ul>
    <li>
      <span><i class="glyphicon glyphicon-leaf"></i> Child</span> <a href="">Goes somewhere</a>
      </li>
     </ul>
  </li>
 </ul>
</div>
	
</div>

<script src="${ctx}/assets/sea-modules/seajs/seajs/2.1.1/sea.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="${ctx}/assets/js/html5shiv.js"></script>
  <script src="${ctx}/assets/js/respond.min.js"></script>
<![endif]-->



<script>  

  seajs.config({
    base: "${ctx}/assets/sea-modules/",
    map: [[ /^(.*\.(?:js))(.*)$/i, '$1?v=${version}' ]],
    paths: {
    "echarts" : "echarts/1.2.1",
        "zrender" : "zrender/1.0.4"
    },
    alias: {
      "jquery" : "jquery/jquery/1.10.1/jquery",
      "jquery-migrate" : "jquery/jquery/1.10.1/jquery-migrate",
      "jbox" : "jquery/jquery-jbox/2.3/jquery.jBox-2.3.min",
      "echarts" : "echarts/echarts",
      "zrender" : "zrender/zrender"
    }
  });
  
  $CONFIG={
base_url: '${ctx}',
env: '${env}',
version: '${version}',
admin_url:'${admin_url}'
};
  $g_user={
id: '<shiro:principal property="id"/>',
name: '<shiro:principal property="name"/>',
role: '<shiro:principal property="roles"/>',
login: true
};
  

</script>
<c:if test="${env == 'production' }">
<script type="text/javascript">
seajs.use("${ctx}/assets/js-dist/admin/menu");
</script>
</c:if>
<c:if test="${env != 'production' }">
<script type="text/javascript">
seajs.use("${ctx}/assets/js/admin/menu");
</script>
</c:if>